<?php

/**
 * Investigacion form.
 *
 * @package    sistema_estadisticas
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class InvestigacionForm extends BaseInvestigacionForm
{

	public function configure()
	{
		$date = getdate();
		$values = range($date['year'], $date['year'] - 2);
		$this->widgetSchema['estudiante_list'] = new WidgetFormAutocomplete(
			array(
				'action' => 'estudiante/buscar',
				'model' => 'Estudiante',
				'multiple' => true,
				'plural' => 'Estudiantes',
				'label' => 'Estudiantes'
			)
		);

		$this->widgetSchema['carrera_id']->setOption('order_by', array('denominacion', 'ASC'));
		$this->widgetSchema['modulo'] = new sfWidgetFormChoice(array('choices' => Constantes::$MODULOS));
		$this->widgetSchema['anio'] = new sfWidgetFormChoice(array('choices' => array_combine($values, $values)));

		parent::setupAnexoForm();
	}

}
